package com.bosssoft.service_order.service;

import com.bosssoft.service_order.common.api.CommonPage;
import com.bosssoft.service_order.domain.dto.OrderDetail;
import com.bosssoft.service_order.domain.dto.ProtalOrderQueryParam;

/**
 * 前台订单管理Service
 */
public interface PortalOrderService {

    /**
     * 根据提交信息生成订单
     */
    int createOrder(ProtalOrderQueryParam protalOrderQueryParam);

    /**
     * 分页获取用户订单
     */
    CommonPage<OrderDetail> list(Long uid, Integer status, Integer pageNum, Integer pageSize);

    /**
     * 根据订单ID获取订单详情
     */
    OrderDetail detail(Long orderId);

    /**
     * 支付成功后的回调
     */
    Integer paySuccess(Long orderId, Integer payType);


}
